FROM openjdk:21-jdk-slim-bookworm
LABEL maintainer="qiujun623"

ADD target/code-1.0.0-SNAPSHOT.jar /opt/app.jar

EXPOSE 8080

ENTRYPOINT ["java"]

CMD ["-Duser.timezone=GMT+08", "-jar", "/opt/app.jar"]



# docker build -t qiujun623/demo_code:v1 -f Dockerfile .